Events triggered by the user or browser can be handled by JavaScript. Click, keypress, or pageload are some of the events that can be handled.
Click the button below to see an event handler in action.
On Key Press
On Submit